import server from '../server/http'

var getList = function(url) {
    return new Promise((resolve, reject) => {
        server.get('/data.json').then(res => {
            console.log(res)
            resolve(res)
        })
        // server.get(url).then(res =>{
        //     // console.log(res)
        //     resolve(res)
        // })
    })
    
}

export {
    getList
}